﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="GasComposition.aspx.cs" Inherits="Admin_Gas" Title="Admin ~ GasComposisiton" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
   <table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                              
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading " align="left" >GAS COMPOSITION</td>
                                                <td align="left" ><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server" Width="482px"></asp:Label></td>
                                                <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>             
                                                </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                <tr id="trTextboxGasComposition" runat="server">
                                    <td>
                                        <table >
                                               <tr class="ashBkg " id="tr1" runat="server" visible="false" >
                                                <td colspan="2">
                                                    <table >
                                                    <tr>
                                                     <td class='label'>GasComId</td>
                                                     <td><asp:TextBox ID="txtGasCompId" runat="server" cssclass='textBox' Width='150px' 
                                                     MaxLength="50"></asp:TextBox></td>
                                                  
                                                    </tr>
                                                    </table>
                                                </td>
                                   
                                </tr> 
                                                               
                                <tr>
                                    <td colspan="2">
                                        <table style="width: 868px" >
                                           
                                            <tr class="ashBkg ">
                                                    <td class='label'>H<sub>2</sub> &nbsp;(wt%) </td>
                                                    <td><asp:TextBox ID="txtH2" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                    <td class='label'>CO<sub>2</sub> &nbsp;(wt%) </td>
                                                    <td><asp:TextBox ID="txtCO2" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="10"></asp:TextBox></td>
                                                    <td class='label'>C<sub>2</sub>H<sub>2 </sub> &nbsp;(wt%)</td>
                                                    <td><asp:TextBox ID="txtC2H2" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="10"></asp:TextBox></sub></td>
                                                    <td class='label'>CH<sub>4</sub>&nbsp;(wt%)</td> 
                                                    <td><asp:TextBox ID="txtCH4" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="10"></asp:TextBox></td>
                                            </tr>
                                            
                                            <tr class="altanateAshBkg ">
                                                    <td class='label'>N<sub>2</sub>&nbsp;(wt%) </td>
                                                    <td><asp:TextBox ID="txtN2" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                    <td class='label'>CO&nbsp;(wt%)</td>
                                                    <td><asp:TextBox ID="txtCO" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                    <td class='label'>C<sub>2</sub>H<sub>6</sub>&nbsp;(wt%) </td>
                                                    <td><asp:TextBox ID="txtC2H6" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="10"></asp:TextBox></td>
                                                    <td class='label'>C<sub>2</sub>H<sub >4</sub>&nbsp;(wt%)</td>
                                                    <td><asp:TextBox ID="txtC2H4" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="10"></asp:TextBox></td>
                                            </tr >  
                                                                            
                                            <tr class="ashBkg">
                                                
                                                    <td class='label'>Tar &nbsp;(g/Nm<sup >3</sup>) </td>
                                                    <td><asp:TextBox ID="txtTar" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                
                                                    <td class='label'>GCV &nbsp;(MJ/kg) </td>
                                                    <td><asp:TextBox ID="txtGCV" runat="server" cssclass='textBox' Width='65px' 
                                                            MaxLength="100" ontextchanged="txtGCV_TextChanged"></asp:TextBox></td>
                                                
                                           </tr>
                                            
                                        </table>
                                    </td>
                                </tr> 
                                
                                <tr>
                                    <td colspan="3">
                                        <table >
                                            <tr>
                                                <td class="altanateAshBkg " align="left" >  <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/btnSave.jpg" onclick="ImageButton1_Click" /></td>
                                                <td><asp:Button ID="btnPrevious" runat="server" Text="PreviousRecord" 
                                                        CssClass="button" onclick="btnPrevious_Click" /></td>
                                                <td><asp:CheckBox ID="Miscellaneous" runat="server" BorderStyle="None" CssClass="radioButton" Text="Miscellaneous" AutoPostBack="True" oncheckedchanged="Misscellaneous_CheckedChanged" Font-Underline="True" />  </td>                                   
                                            </tr>
                                        </table>
                                    </td>
                                    
                                </tr>
                                
                                <tr id="trMisscellaneous" runat="server" visible="false" >
                                    <td>
                                        <table>
                                            <tr id="trGasComponentMiscTextBox" runat="server" >
                                                <td>
                                                    <table >
                                                        <tr id="GasComMiscId" runat="server" visible="false">
                                                         <td>Id</td>
                                                         <td><asp:TextBox ID="txtMiscId" runat="server" CssClass="textBox"></asp:TextBox></td>
                                                         </tr>
                                                        <tr>
                                                        <%--<td class="lable">Id</td>
                                                     <td><asp:TextBox ID="txtGasComMisc" runat="server" CssClass="textBox"></asp:TextBox></td>
                                                     --%><td class="label "> Component </td>
                                                     <td><asp:TextBox ID="txtComponent" runat="server" CssClass="textBox" ></asp:TextBox> </td>
                                                         <td class="label">Relative Content (%) </td>
                                                     <td><asp:TextBox ID="txtRelativeContent" runat="server"  CssClass="textBox"></asp:TextBox></td>
                                                     <td><asp:Button ID="btnMisscellaneous" Text="Add Miscellaneous" CssClass="button"                                  runat="server" Height="25px" Width="119px" 
                                                        onclick="btnMisscellaneous_Click"  /> </td>
                                                      
                                                        
                                                        </tr>
                                                    </table>
                                                </td>
                                                
                                           </tr>
                                           
                                            <tr id="trGasComponentMiscDg" runat="server">
                                            <td colspan="7">
                                            <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgGas" 
                                            runat="server" onpageindexchanging="dgGasComp_PageIndexChanging" 
                                            onrowediting="dgGas_RowEditing" 
                                            onselectedindexchanged="dgGasComp_SelectedIndexChanged" >
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="Component" HeaderText="Component"/>
                                                <asp:BoundField  DataField="relativecontent" HeaderText="RelativeContent"/>                                                                                                                                          
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                            </td>
                                           </tr>
                                        </table>
                                    </td>
                                </tr>
                                        </table>
                                    </td>
                                </tr>
                                                                                         
                                <tr id="trDgGasComposition" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgGasComp" 
                                            runat="server" onpageindexchanging="dgGasComp_PageIndexChanging" 
                                            onrowediting="dgGasComp_RowEditing" 
                                            onselectedindexchanged="dgGasComp_SelectedIndexChanged" >
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="H2" HeaderText="H2"/>
                                                <asp:BoundField  DataField="CO" HeaderText="CO" />
                                                <asp:BoundField  DataField="CO2" HeaderText="CO2" />
                                                <asp:BoundField  DataField="CH4" HeaderText="CH4" />
                                                <asp:BoundField  DataField="C2H2" HeaderText="C2H2"/>
                                                <asp:BoundField  DataField="C2H4" HeaderText="C2H4" />
                                                <asp:BoundField  DataField="C2H6" HeaderText="C2H6" />
                                                <asp:BoundField  DataField="N2" HeaderText="N2" />
                                                <asp:BoundField  DataField="GCV" HeaderText="GCV" />
                                                <asp:BoundField  DataField="Tar" HeaderText="Tar" />                                                                                           
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
     
</asp:Content>

